package com.nyist.threadCase2;

import com.nyist.lockCase.ThreadExtendsCreate;

/**
 * 1.
 *
 * @ClassName BuyTicket
 * @Description
 * @Author xiaoyang
 * @Date 2023/04/08/16:34
 */
public class BuyTicket3  {

    public static void main(String[] args) {
        ThreadExtendsCreate t1 = new ThreadExtendsCreate("runnable 111");
        ThreadExtendsCreate t2 = new ThreadExtendsCreate("runnable 222");
        ThreadExtendsCreate t3 = new ThreadExtendsCreate("runnable 333");

        t1.setName("runnable 111----");
        t2.setName("runnable 222---");
        t2.setName("runnable 333---");

        t1.start();
        t2.start();
        t3.start();
    }

}
